package com.bgrconsulting.stockorderentry.service.converter;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.bgrconsulting.stockorderentry.service.model.SymbolInfo;

@XmlRootElement(name = "SymbolInfo")
public class SymbolInfoConverter {
	
	private SymbolInfo enity;
	
	public SymbolInfoConverter(SymbolInfo symbolInfo) {
		enity = symbolInfo;
	}
	
	public SymbolInfoConverter() {
		enity = new SymbolInfo();
	}
	
	
	@XmlElement(name = "symbol")
	public String getSymbol()
	{
		return enity.getSymbol();
	}
	
	
	@XmlElement(name = "callPut")
	public String getCallPut() {
		return enity.getCallPut();
	}
	
	
	@XmlElement(name = "expYear")
	public int getExpYear() {
		return enity.getExpYear();
	}
	
	
	@XmlElement(name = "expMonth")
	public int getExpMonth() {
		return enity.getExpMonth();
	}
	
	@XmlElement(name = "expDay")
	public int getExpDay() {
		return enity.getExpDay();
	}
	
	
	@XmlElement(name = "strikePrice")
	public Double getStrikePrice() {
		return enity.getStrikePrice();
	}

}
